package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.OpeningMapper;
import com.wanda.po.Opening;
import com.wanda.po.OpeningExample;
import com.wanda.service.OpeningService;

@Service("openingService")
public class OpeningServiceImpl implements OpeningService{

	@Autowired
	private OpeningMapper openingMapper;
	
	public List<Opening> findOpeningList(OpeningExample openingExample) {
		return openingMapper.selectByExample(openingExample);
	}

	public int insertOpening(Opening opening) {
		return openingMapper.insert(opening);
	}

	public int updateByPrimaryKeySelective(Opening opening) {
		return openingMapper.updateByPrimaryKey(opening);
	}

	public int updateByPrimaryKey(Opening opening) {
		return openingMapper.updateByPrimaryKey(opening);
	}

	public Opening selectByPrimaryKey(int id) {
		return openingMapper.selectByPrimaryKey(id);
	}
	
}
